import request from '@/utils/request'

// 查询列表
export function listUser(query) {
  return request({
    url: '/system/app/user/page',
    method: 'get',
    params: query
  })
}

export function getUserInfo(query) {
  return request({
    url: '/system/app/user/getUserInfo',
    method: 'get',
    params: query
  })
}

export function getUserBank(query) {
  return request({
    url: '/system/app/user/getUserBank',
    method: 'get',
    params: query
  })
}

export function getUserRelation(query) {
  return request({
    url: '/system/app/user/getUserRelation',
    method: 'get',
    params: query
  })
}

export function getOperatorLog(query) {
  return request({
    url: '/system/app/user/getUserOperatorLog',
    method: 'get',
    params: query
  })
}

export function updateUserBank(data) {
  return request({
    url: '/system/app/user/updateUserBank',
    method: 'put',
    params: data
  })
}

export function getUserVa(query) {
  return request({
    url: '/system/app/user/getUserVa',
    method: 'get',
    params: query
  })
}

export function deleteUserById(userId){
  return request({
    url: '/system/app/user/' + userId,
    method: 'delete'
  })
}




